import { getUserNameFromStorage, getColorByName } from '@/components/Tiptap/tiptap-collaboration/tiptap-collaboration-cursor'

export const userName = getUserNameFromStorage()
export const userColor = getColorByName(userName)

export const useUser = () => {
  return {
    name: userName,
    color: userColor,
  }
}